package com.duan.laugh.upms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.duan.laugh.upms.api.pojo.entity.Permission;
import com.duan.laugh.upms.mapper.PermissionMapper;
import com.duan.laugh.upms.service.PermissionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 权限service实现
 *
 * @author duanjw
 */
@Slf4j
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    /**
     * 根据角色id查询权限
     *
     * @param roleIds
     * @return
     */
    @Override
    public List<Permission> selectPermissionListByRoleIds(String roleIds) {
        return permissionMapper.selectPermissionListByRoleIds(roleIds);
    }
}
